package com.ruoyi.opportunities.mapper;

import java.util.List;
import com.ruoyi.opportunities.domain.BusinessOpportunities;
import org.springframework.stereotype.Repository;

/**
 * 商机管理Mapper接口
 * 
 * @author suoge
 * @date 2025-10-21
 */
@Repository
public interface BusinessOpportunitiesMapper 
{
    /**
     * 查询商机管理
     * 
     * @param opportunityId 商机管理主键
     * @return 商机管理
     */
    public BusinessOpportunities selectBusinessOpportunitiesByOpportunityId(Long opportunityId);

    /**
     * 查询商机管理列表
     * 
     * @param businessOpportunities 商机管理
     * @return 商机管理集合
     */
    public List<BusinessOpportunities> selectBusinessOpportunitiesList(BusinessOpportunities businessOpportunities);

    /**
     * 新增商机管理
     * 
     * @param businessOpportunities 商机管理
     * @return 结果
     */
    public int insertBusinessOpportunities(BusinessOpportunities businessOpportunities);

    /**
     * 修改商机管理
     * 
     * @param businessOpportunities 商机管理
     * @return 结果
     */
    public int updateBusinessOpportunities(BusinessOpportunities businessOpportunities);

    /**
     * 删除商机管理
     * 
     * @param opportunityId 商机管理主键
     * @return 结果
     */
    public int deleteBusinessOpportunitiesByOpportunityId(Long opportunityId);

    /**
     * 批量删除商机管理
     * 
     * @param opportunityIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBusinessOpportunitiesByOpportunityIds(Long[] opportunityIds);
}
